package com.hxd.otc.module.my.bean;


import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by lzy on 2018/6/21 0021.
 * description ${广告bean}
 */
public class AdvertBean implements Serializable {

    private String id;//广告id
    private String coinId;  //币种ID
    private String symbol;  //虚拟币符号
    private String supportCurrencyCode;  //法币
    private String exType;     //买卖类型，0买1卖
    private String orderId;    //广告id
    private String maxVolume;    //最大限制
    private String minVolume;    //最小限制
    private String lockVolume; //交易冻结数量
    private String successVolume; //交易成功数量
    private String volume; //发布数量
    private String price; //单价
    private String totalPrice;     //发布总价
    private int status;    //广告状态status:   0发布状态1已完成9取消
    private String supportPay; //支持支付方式，1微信2支付宝3银行卡
    private String realName;  //名称
    private String tag; //tag=YS 表示广告商
    private String publishSource; //otc
    private long createDate;  //创建时间,毫秒数
    private long updateDate;    //更新时间
    private String feeVolume; //手续费
    private String mobile; // 电话
    private String userId; //自己的ID
    private String createBy;
    private String flag; //货币种类
    private String remarks;
    private String updateBy;
    private String minMoney;//最小限额
    private String maxMoney;//最大限额
    private String floatPrice;//如果是1浮动定价，下列参数必填
    private String floatPlat;//追踪平台
    private String floatRate;//浮动比例：0不浮动，正数上浮，负数下浮
    private String minPrice;//底价

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCoinId() {
        return coinId;
    }

    public void setCoinId(String coinId) {
        this.coinId = coinId;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getSupportCurrencyCode() {
        return supportCurrencyCode;
    }

    public void setSupportCurrencyCode(String supportCurrencyCode) {
        this.supportCurrencyCode = supportCurrencyCode;
    }

    public String getExType() {
        return exType;
    }

    public void setExType(String exType) {
        this.exType = exType;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getMaxVolume() {
        return maxVolume;
    }

    public void setMaxVolume(String maxVolume) {
        this.maxVolume = maxVolume;
    }

    public String getMinVolume() {
        return minVolume;
    }

    public void setMinVolume(String minVolume) {
        this.minVolume = minVolume;
    }

    public String getLockVolume() {
        return lockVolume;
    }

    public void setLockVolume(String lockVolume) {
        this.lockVolume = lockVolume;
    }

    public String getSuccessVolume() {
        return successVolume;
    }

    public void setSuccessVolume(String successVolume) {
        this.successVolume = successVolume;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getSupportPay() {
        return supportPay;
    }

    public void setSupportPay(String supportPay) {
        this.supportPay = supportPay;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public boolean isNosenseOrder() {
        if (publishSource.equals("otc-easypay")) {
            return true;
        }
        return false;
    }

    public String getPublishSource() {
        return publishSource;
    }

    public void setPublishSource(String publishSource) {
        this.publishSource = publishSource;
    }

    public long getCreateDate() {
        return createDate;
    }

    public void setCreateDate(long createDate) {
        this.createDate = createDate;
    }


    public long getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(long updateDate) {
        this.updateDate = updateDate;
    }

    public String getFeeVolume() {
        return feeVolume;
    }

    public void setFeeVolume(String feeVolume) {
        this.feeVolume = feeVolume;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getMinMoney() {
        return minMoney;
    }

    public void setMinMoney(String minMoney) {
        this.minMoney = minMoney;
    }

    public String getMaxMoney() {
        return maxMoney;
    }

    public void setMaxMoney(String maxMoney) {
        this.maxMoney = maxMoney;
    }

    public String getFloatPrice() {
        return floatPrice;
    }

    public void setFloatPrice(String floatPrice) {
        this.floatPrice = floatPrice;
    }

    public boolean isFloatPrice() {
        return "1".equals(floatPrice);
    }

    public boolean isFloatingUpward() {
        return new BigDecimal(floatRate).doubleValue() >= 0;
    }

    public String getFloatPlat() {
        return floatPlat;
    }

    public void setFloatPlat(String floatPlat) {
        this.floatPlat = floatPlat;
    }

    public String getFloatRate() {
        return floatRate;
    }

    public void setFloatRate(String floatRate) {
        this.floatRate = floatRate;
    }

    public String getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(String minPrice) {
        this.minPrice = minPrice;
    }

    @Override
    public String toString() {
        return "AdvertBean{" +
                "id='" + id + '\'' +
                ", coinId='" + coinId + '\'' +
                ", symbol='" + symbol + '\'' +
                ", supportCurrencyCode='" + supportCurrencyCode + '\'' +
                ", exType='" + exType + '\'' +
                ", orderId='" + orderId + '\'' +
                ", maxVolume='" + maxVolume + '\'' +
                ", minVolume='" + minVolume + '\'' +
                ", lockVolume='" + lockVolume + '\'' +
                ", successVolume='" + successVolume + '\'' +
                ", volume='" + volume + '\'' +
                ", price='" + price + '\'' +
                ", totalPrice='" + totalPrice + '\'' +
                ", status=" + status +
                ", supportPay='" + supportPay + '\'' +
                ", realName='" + realName + '\'' +
                ", tag='" + tag + '\'' +
                ", publishSource='" + publishSource + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", feeVolume='" + feeVolume + '\'' +
                ", mobile='" + mobile + '\'' +
                ", userId='" + userId + '\'' +
                ", createBy='" + createBy + '\'' +
                ", flag='" + flag + '\'' +
                ", remarks='" + remarks + '\'' +
                ", updateBy='" + updateBy + '\'' +
                ", minMoney='" + minMoney + '\'' +
                ", maxMoney='" + maxMoney + '\'' +
                ", floatPrice='" + floatPrice + '\'' +
                ", floatPlat='" + floatPlat + '\'' +
                ", floatRate='" + floatRate + '\'' +
                ", minPrice='" + minPrice + '\'' +
                '}';
    }
}
